package com.hengxinguotong.zhihuichengjian.bean;

import com.hengxinguotong.zhihuichengjian.utils.Utils;

/**
 * @CopyRight 恒信国通信息科技
 * @Author WuLei
 * @Date 2019/3/19
 *
 * 环境喷淋阈值
 */

public class SprayThreshold {
    private String id,
            pm25Alarm,//	pm25阈值
            pm10Alarm,//	pm10阈值
            temperatureAlarm,//	温度阈值
            humidityAlarm;//	湿度阈值

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public float getPm25Alarm() {
        if(Utils.isEmpty(pm25Alarm)){
            return 0;
        }
        return Float.parseFloat(pm25Alarm);
    }

    public void setPm25Alarm(String pm25Alarm) {
        this.pm25Alarm = pm25Alarm;
    }

    public float getPm10Alarm() {
        if(Utils.isEmpty(pm10Alarm)){
            return 0;
        }
        return Float.parseFloat(pm10Alarm);
    }

    public void setPm10Alarm(String pm10Alarm) {
        this.pm10Alarm = pm10Alarm;
    }

    public float getTemperatureAlarm() {
        if(Utils.isEmpty(temperatureAlarm)){
            return 0;
        }
        return Float.parseFloat(temperatureAlarm);
    }

    public void setTemperatureAlarm(String temperatureAlarm) {
        this.temperatureAlarm = temperatureAlarm;
    }

    public float getHumidityAlarm() {
        if(Utils.isEmpty(humidityAlarm)){
            return 0;
        }
        return Float.parseFloat(humidityAlarm);
    }

    public void setHumidityAlarm(String humidityAlarm) {
        this.humidityAlarm = humidityAlarm;
    }
}
